<?php
/**
 * 关键字模型
 * 
 * @version $Id: Terms.php 645 2013-01-23 03:49:03Z linsir123 $
 */
class adminTerms 
{
	/**
	 * @var 模型
	 */
	public $dbTerm;
	
	/**
	 * 构造函数
	 */
	public function __construct()
	{
		App::V('pinyin');
		///
		$this->dbTerm = D::terms();
	}
	
	/**
	 * 保存
	 */
	public function save($term)
	{
		$pinyin = string2pinyin($term);
		///
		return $this->dbTerm->save($pinyin, $term);
	}
}
